package com.bizframework.security.domain.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.bizframework.core.domain.BaseEntity;

public class User extends BaseEntity<String> {
	/**
	 * 
	 */
	private List<Group> groups;
	/**
	 * 
	 */
	private List<Permission> permissions;
	/**
	 * 用户名
	 */
	private String userName;
	/**
	 * 用户秘密
	 */
	private String password;
	/**
	 * 创建时间
	 */
	private Date createDate;
	/**
	 * 备注
	 */
	private String note;
	/**
	 * 用户状态
	 */
	private String status;
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public String getNote() {
		return note;
	}
	public void setNote(String node) {
		this.note = node;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public List<Group> getGroups() {
		if (groups == null) {
			groups = new ArrayList<Group>();
		}
		return groups;
	}
	public void setGroups(List<Group> groups) {
		this.groups = groups;
	}
	public List<Permission> getPermissions() {
		if (permissions == null) {
			permissions = new ArrayList<Permission>();
		}
		return permissions;
	}
	public void setPermissions(List<Permission> permissions) {
		this.permissions = permissions;
	}
}
